what happens when closing a mortgage